using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.Register.outpatient
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string Outpatient_ID= strid;
					ShowInfo(Outpatient_ID);
				}
			}
		}
		
	private void ShowInfo(string Outpatient_ID)
	{
		Maticsoft.BLL.Register.outpatient bll=new Maticsoft.BLL.Register.outpatient();
		Maticsoft.Model.Register.outpatient model=bll.GetModel(Outpatient_ID);
		this.lblOutpatient_ID.Text=model.Outpatient_ID;
		this.lblRegister_ID.Text=model.Register_ID;
		this.lblOutpatient_PaitentName.Text=model.Outpatient_PaitentName;
		this.lblOutpatient_PaitentSex.Text=model.Outpatient_PaitentSex;
		this.lblOutpatient_PaitentBirthDay.Text=model.Outpatient_PaitentBirthDay.ToString();
		this.lblOutpatient_PaitentIDCards.Text=model.Outpatient_PaitentIDCards;
		this.lblOutpatient_OutpaitentType.Text=model.Outpatient_OutpaitentType;
		this.lblOutpatient_AddTime.Text=model.Outpatient_AddTime.ToString();
		this.lblOutpatient_Recoder.Text=model.Outpatient_Recoder;

	}


    }
}
